import vue from '@vitejs/plugin-vue'
import Components from 'unplugin-vue-components/vite';
import {VantResolver} from '@vant/auto-import-resolver';

export default {
    publicPath: './',
    plugins: [
        vue(),
        Components({
            resolvers: [VantResolver()],
        }),
    ],
    build: {
        chunkSizeWarningLimit: 1600,
    },
    // server: {
    //     proxy: {
    //         '/api': {
    //             target: 'http://121.89.205.189:3000',
    //             ws: false,
    //             changeOrigin: true,
    //             rewrite: (path: any) => path.replace(/^\/api/, '')
    //         },
    //     },
    // }
};



